﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;


namespace AjaxControlFramework.Compilation
{
    public class JavaScriptSourceElement
    {
        //------// Properties \\--------------------------------------------\\
        public virtual string SourceCode { get; set; }
        public virtual JavaScriptSourceElementType Type { get; set; }
        public virtual string Prefix { get; set; }
        public virtual int LineNumber { get; set; }
        //------\\ Properties //--------------------------------------------//



        //------// Constructors \\------------------------------------------\\
        public JavaScriptSourceElement()
        { }


        public JavaScriptSourceElement(string sourceCode, JavaScriptSourceElementType type)
        {
            SourceCode = sourceCode;
            Type = type;
        }


        public JavaScriptSourceElement(string sourceCode, JavaScriptSourceElementType type, int lineNumber)
        {
            SourceCode = sourceCode;
            Type = type;
            LineNumber = lineNumber;
        }


        public JavaScriptSourceElement(string sourceCode, JavaScriptSourceElementType type, string prefix)
            : this(sourceCode, type)
        {
            Prefix = prefix;
        }


        public JavaScriptSourceElement(string sourceCode, JavaScriptSourceElementType type, string prefix, int lineNumber)
            : this(sourceCode, type)
        {
            Prefix = prefix;
            LineNumber = lineNumber;
        }
        //------\\ Constructors //------------------------------------------//



        //------// Methods \\-----------------------------------------------\\

        //------\\ Methods //-----------------------------------------------//
    }
}